Part Number Hot Search : 
ANALO 0726A LVCH16 IRLU024Z EF68B40 KS555D KBPC1000 SRC1206
Product Description
Full Text Search
 

To Download AN2502 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  march 2007 rev 1 1/9 AN2502 application note enhanced sensorless startup control of bldc motors using st7fmc introduction the st7fmc microcontroller is capable of co ntrolling 3 phase brushless dc (bldc) motors in position sensorless mode because of its powe rful motor control macro cell. it is capable of monitoring zero crossings of all 3 back emf (bemf) voltages using a direct bemf detection feature, where the entire motor terminal voltage is directly applied to an onchip zero crossing detector during the zero crossing period without any attenuation. hence it is able to track the bemf zero crossings even at very low motor speeds. this direct bemf detection feature helps to start the motor in auto commutated mode right from zero speed. in traditional methods, where the motor voltage signals are scaled down at the comparator input, it is necessary to step the rotor through a few rotations initially to let the comparator see sufficient levels of bemf signals to detect zero crossings. the rate at which the rotor can be stepped through these initial rotations is highly influenced by load inertia, and hence a step timing table has to be created on the basis of load inertia. this can be a cumbersome task if the load inertia is not constant. with st7fmc, because of the direct bemf detection feature, this procedure can be avoided completely, thereby saving on development time as well as code memory space. in any case, an alignment of the rotor to a known position is mandatory. at the end of alignment, if a commutation is performed by switching the next set of windings into conduction, the rotor is forced to turn in the direction of new step. if the winding current is set close to rated motor curren t at the end of alignment, t hen this step change will apply a rated torque on the rotor. generally, this torque should be sufficient to kick the rotor to turn in the right direction at a reasonable rate (or speed), inducing a reasonable bemf in the floating winding good enough for the zero crossing detector to identify a zero crossing as the full bemf is available at the comparator input without any attenuation. hence from the very first step, the device can be set in auto commutated mode like in a hall position sensor based control. www.st.com
contents AN2502 2/9 contents 1 implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 2 experimental results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 3 conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 appendix a associated software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 4 revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
AN2502 implementation 3/9 1 implementation alignment is done by passing current through motor windings corresponding to one of 6 steps of inverter. let us call it step 0. at the end of alignment, the rotor comes to a parking position that will be a magnetically neutr al position on the floating winding. during alignment, bits dac(mcra) and swa(mcra) are set to zero and mcomp is also set to zero. this has two implications. if dac bit is zero, then writing to mphst will only update the preload registers and become active only during a commutation (or c) event. with swa bit being zero, a zero value on mc omp will retain mtim at zero and will create a c event for every clock effectively transferring associated preload registers to active registers with one clock latency. hence, at the end of alignment, if the mphst register is written with the next step (ste p 1), the inverter switching st ates will change to the new step (step1) during the next clock cycle and the roto r will turn in the direction of new step. the cpb(mcrb) bit must also be set appropriately corresponding to the new step to identify zero crossing for the new step when it happens. to ensure a good starting torque, the dutycycle may be selected to ensu re rated current in the motor windings during this time. at this instant, the swa(mcra) bit should be set high to put the device into auto- commutated mode. in this mode, commutation instances are estimated by hardware and its associated time count is loaded into mcomp at the time of zero crossing (z) events, based on zero crossing pe riods mzreg/ mzprv and a coefficient mwght. before setting swa, since mcomp was zero, mtim was forced to remain at zero generating c events for every clock. once swa is set, the hardware watches out for a d event and the mtim timer starts counting from zero in pursuit of d and z events. after setting up swa, the cim(mimr) bit should be set to enable c interrupts. at this point, a c interrupt takes place immediately because its flag was previously set repeatedly when swa was zero, as explained above. inside the c interrupt routine, the mphst and mcrb registers are updated for the next step (step2). these are only written into preload registers and are not active yet. if simulated demag option (sdm(mcrb)=1) is chosen, then mdreg must be updated inside the c interrupt routine. after the generation of a d event, the comparator hardware is set up to identify zero crossing of the floating winding. the active step on the inverter is step 1 yet, and if the motor current is good enough to produce a good starting torque to turn the rotor at a good rate, it will generate a reasonable bemf on the floating winding that will pass through a natural zero crossing during this inverter step. this event is captured by the hardware and a z event is generated. this event buffers mzreg into mzprv and captures mtim into mzreg and also loads mcomp with a new time value, based on mzreg/mzprv and mwght, to setup the next commutation event. when a match between mtim and mcomp happens, a c event is generated transferring contents from preload mphst to active state setting up next inverter step (step 2). updating of all relevant registers inside the c routine is repeated as before, and this c event is followed by d event and subsequently by z event and thus the cycle repeats continuously. the sequence of events during starting is captured in figure 1 .
experimental results AN2502 4/9 2 experimental results this concept is implemented on a starter kit to run an onboard 24v ametek bldc motor. the captured waveforms are given in figure 1 and figure 2 . figure 1. first two commutation steps after alignment the edges of trace 2 have the following significances: before first rising edge ? end of alignement (at step 0) ? dac(mcra) = 0, swa(mcra) = 0, mcomp = 0 ? active step is step 0 during first level high ? write mphst corresponding to next step (step 1) ? mcrb updated for step 1 ? swa(mcra) set ? cim(mimr) set ? active step is step 1 first falling edge ? first c interrupt execution ? inside c isr, preloads of mphst and mcrb updated for next step (step 2) and mdreg is updated (if simulated demag option chosen) ? notice trace 3 (mcdem) falling edge (d event instance) happening after this edge ? notice trace 1 (mczem) falling edge (z event instance) happening after d instance ? active step is step 1 trace 4: current waveform trace 2: flag to signify certain stages in start up trace 1: mczem trace 3: mcdem
AN2502 experimental results 5/9 second rising edge ? second c interrupt execution ? active registers get copied from preloads, first auto commutated step visible outside ? active step is step 2 ? preloads of mphst and mcrb updated for next step (step 3) the pictorial details of the first few steps are shown in figure 2 figure 2. first few steps after alignment trace 4: current waveform trace 2: flag, toggles at every c isr trace 1: mczem trace 3: mcdem
conclusion AN2502 6/9 3 conclusion the need to generate a forced start up stepping sequence and to tune its stepping rate is completely avoided. the waveforms shown in figure 2 reveal the excellent starting performance obtained with a low voltage (24v) bldc motor that generates a very weak bemf at start up. for higher voltage motors, such as 300v dc, this method will be even more reliable. this was verified by running a blower motor and a washing machine motor and the performance was found to be satisfactory. most low cost sensorless control methods requires initial forced rotation of the rotor. but st7fmc, because of its direct bemf detection method, differentiates itself from the rest by this superior start up performance.
AN2502 associated software 7/9 appendix a associated software to verify this method on the starter kit, download and use the attached software sup_sensrls.zip file. all motor control modules are written in motcon.c and program start module is written in main.c . control board hardware definitions are given in pcboard.h . to see the waveforms given in this application note, open parameters.h file and set macro test to 1, removing jumpers j15(13:14), j15(11:12) and w10. the evaluation details are as follows: for test signals: j15 pin 14 --> mcdem represented by trace 3 j15 pin 12 --> mczem represented by trace 1 w10 mid pin --> flag signal represented by trace 2 control set up: w12 --> in fixed mode pot1 --> sets current limit reference rv2 --> sets dutycycle sw1 --> on/off command to start / stop motor
revision history AN2502 8/9 4 revision history table 1. document revision history date revision changes 02-mar-2007 1 initial release.
AN2502 9/9 please read carefully: information in this document is provided solely in connection with st products. stmicroelectronics nv and its subsidiaries (?st ?) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described he rein at any time, without notice. all st products are sold pursuant to st?s terms and conditions of sale. purchasers are solely responsible for the choice, selection and use of the st products and services described herein, and st as sumes no liability whatsoever relating to the choice, selection or use of the st products and services described herein. no license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. i f any part of this document refers to any third party products or services it shall not be deemed a license grant by st for the use of such third party products or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoev er of such third party products or services or any intellectual property contained therein. unless otherwise set forth in st?s terms and conditions of sale st disclaims any express or implied warranty with respect to the use and/or sale of st products including without limitation implied warranties of merchantability, fitness for a parti cular purpose (and their equivalents under the laws of any jurisdiction), or infringement of any patent, copyright or other intellectual property right. unless expressly approved in writing by an authorized st representative, st products are not recommended, authorized or warranted for use in milita ry, air craft, space, life saving, or life sustaining applications, nor in products or systems where failure or malfunction may result in personal injury, death, or severe property or environmental damage. st products which are not specified as "automotive grade" may only be used in automotive applications at user?s own risk. resale of st products with provisions different from the statements and/or technical features set forth in this document shall immediately void any warranty granted by st for the st product or service described herein and shall not create or extend in any manner whatsoev er, any liability of st. st and the st logo are trademarks or registered trademarks of st in various countries. information in this document supersedes and replaces all information previously supplied. the st logo is a registered trademark of stmicroelectronics. all other names are the property of their respective owners. ? 2007 stmicroelectronics - all rights reserved stmicroelectronics group of companies australia - belgium - brazil - canada - china - czech republic - finland - france - germany - hong kong - india - israel - ital y - japan - malaysia - malta - morocco - singapore - spain - sweden - switzerland - united kingdom - united states of america www.st.com


▲Up To Search▲   

 
Price & Availability of AN2502

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X